<template>
  <div class="home-panel">
    <div class="header">
      <h4>{{title}}</h4>
      <XtxMore to="/"></XtxMore>
    </div>
    <!-- 商品列表 -->
    <div class="goods-list">
      <slot></slot>
    </div>
  </div>
</template>

<script>
import XtxMore from '@/components/library/xtx-more.vue'
export default {
  name: 'HomePanel',
  components: { XtxMore },
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  setup () {
    return {

    }
  }
}
</script>

<style lang="less" scoped>
.home-panel{
  background-color: #fff;
  padding: 0 20px;
  margin-top: 20px;
  height: 400px;
  .header{
    line-height: 66px;
    height: 66px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  h4{
    font-weight: normal;
    font-size: 22px;
  }
  .goods-list{
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
  }
}
</style>
